import Vue from 'vue'
import region from '@/dict/region.json'

const proto = Vue.prototype

const dict = {};
dict.region = region

dict.select = function (arys,id) {
  const _r = proto.$_.filter(arys, item => item.ssqid === id)[0];
  if (_r) {
    return _r
  }

  return null
}

export default {
  name: 'dict',
  default: dict
}